package com.blue.wechat.invoke.model.url;

import com.alibaba.fastjson.annotation.JSONField;
import com.blue.core.util.JsonUtil;
import com.blue.wechat.invoke.model.Json;

public class ShortUrl implements Json
{
	private String action = "long2short";
	@JSONField(name = "long_url")
	private String longUrl;

	public ShortUrl()
	{
	}

	public ShortUrl(String longUrl)
	{
		this.longUrl = longUrl;
	}

	@Override
	public String toJson()
	{
		return JsonUtil.output(this);
	}

	public String getAction()
	{
		return action;
	}

	public void setAction(String action)
	{
		this.action = action;
	}

	public String getLongUrl()
	{
		return longUrl;
	}

	public void setLongUrl(String longUrl)
	{
		this.longUrl = longUrl;
	}

}
